<#include "/includes/header.ftl">
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="160" height="100" valign="top"><#include "includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
		<#if siteDetail?has_content>
			<#-- Main Content-->
			<table width="100%" border="0">
			  <tr>
			    <th colspan="2" align='center'>管理店铺[${siteDetail.name?default("No-Name")}]的优惠券&nbsp;&nbsp;(<A href='<@spring.url "/viewstoredetail.jsp?ssid=${siteDetail.sysId}"/>'>浏览店铺</A>)</th>
			    <td colspan="3" align="right"><A href='<@spring.url "/editmyservedstorecoupon.asp?ssid=${siteDetail.sysId}"/>'>发布优惠券</A></td>
			  </tr>
			  <tr>
			    <th colspan="5" align='right'><hr></th>
			  </tr>
			  		  
				<tr>
				  <th nowrap><b>优惠券</th>
				  <th scope="row" nowrap>优惠券编号</th>
				  <th nowrap>名称</th>
				  <th nowrap><b>有效期</th>
				  <th nowrap><b>修改</th>
				</tr>
				
				
				
				
				<#if site2ContentGroupList?has_content>
					<#list site2ContentGroupList as site2ContentList>
						<#list site2ContentList as s2c>
							<tr>
							  <th nowrap><A href='<@spring.url "/viewstorecoupondetail.jsp?s2csid=${s2c.sysId}"/>'><IMG src='IMAGES/COUPON/COUPON_DEFAULT.JPG' width="160" height="100"></A></th>
							  <th scope="row" nowrap>${s2c.content.contentId?default("No-ContentId")}</th>
							  <th ><A href='<@spring.url "/viewstorecoupondetail.jsp?s2csid=${s2c.sysId}"/>'>${s2c.content.contentId?default("NO-ContentId")}:${s2c.content.name?default("No-Name")}</A></th>
							  <th nowrap><#if s2c.content.startDate?has_content && s2c.content.endDate?has_content>${s2c.content.startDate?string("yyyy-MM-dd")} ~ ${s2c.content.endDate?string("yyyy-MM-dd")}</#if></th>
							  <th nowrap><A href='<@spring.url "/editmyservedstorecoupon.asp?s2csid=${s2c.sysId}&ssid=${s2c.site.sysId}"/>'>修改</A></th>
							</tr>
						</#list>
					</#list>
				</#if>
	  	</table>	
			<#-- /Main Content-->
		</#if>
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">